package main

import (
	"github.com/gin-gonic/gin"

	"weekly/api"
	"weekly/initiative"
)

func main() {
	r := gin.Default()
	/*	config.GetViperConfig()*/
	initiative.MysqlInit()
	/*r.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})*/
	api.UserLogin(r)
	r.Run(":8899") // 监听并在 0.0.0.0:8080 上启动服务
}
